package com.ruoyi.passengers.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 乘客信息对象 passengers
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
public class Passengers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 乘客唯一ID */
    private Long id;

    /** 乘客姓名 */
    @Excel(name = "乘客姓名")
    private String name;

    /** 乘客性别 */
    @Excel(name = "乘客性别")
    private String gender;

    /** 乘客联系电话 */
    @Excel(name = "乘客联系电话")
    private String phone;

    /** 注册渠道（如：APP、官网、小程序等） */
    @Excel(name = "注册渠道", readConverterExp = "如=：APP、官网、小程序等")
    private String registrationChannel;

    /** 乘客头像 */

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationTime;

    /** 最近登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 最近登录方式 */
    @Excel(name = "最近登录方式")
    private String lastLoginMethod;

    /** 最近登录大屏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近登录大屏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginBigScreenTime;

    /** 最近登录大屏方式 */
    @Excel(name = "最近登录大屏方式")
    private String lastLoginBigScreenMethod;

    /** 最近下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastOrderTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRegistrationChannel(String registrationChannel) 
    {
        this.registrationChannel = registrationChannel;
    }

    public String getRegistrationChannel() 
    {
        return registrationChannel;
    }

    public void setRegistrationTime(Date registrationTime) 
    {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime() 
    {
        return registrationTime;
    }

    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    public void setLastLoginMethod(String lastLoginMethod) 
    {
        this.lastLoginMethod = lastLoginMethod;
    }

    public String getLastLoginMethod() 
    {
        return lastLoginMethod;
    }

    public void setLastLoginBigScreenTime(Date lastLoginBigScreenTime) 
    {
        this.lastLoginBigScreenTime = lastLoginBigScreenTime;
    }

    public Date getLastLoginBigScreenTime() 
    {
        return lastLoginBigScreenTime;
    }

    public void setLastLoginBigScreenMethod(String lastLoginBigScreenMethod) 
    {
        this.lastLoginBigScreenMethod = lastLoginBigScreenMethod;
    }

    public String getLastLoginBigScreenMethod() 
    {
        return lastLoginBigScreenMethod;
    }

    public void setLastOrderTime(Date lastOrderTime) 
    {
        this.lastOrderTime = lastOrderTime;
    }

    public Date getLastOrderTime() 
    {
        return lastOrderTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("gender", getGender())
            .append("phone", getPhone())
            .append("registrationChannel", getRegistrationChannel())
            .append("registrationTime", getRegistrationTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("lastLoginMethod", getLastLoginMethod())
            .append("lastLoginBigScreenTime", getLastLoginBigScreenTime())
            .append("lastLoginBigScreenMethod", getLastLoginBigScreenMethod())
            .append("lastOrderTime", getLastOrderTime())
            .toString();
    }
}
